package com.zbj.data.jpa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * SpringDataJpaApplication
 *
 * @author weigang
 * @create 2017-09-10
 **/
@SpringBootApplication
//		(scanBasePackages = {"com.zbj.data.jpa"})
public class SpringDataJpaApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(SpringDataJpaApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SpringDataJpaApplication.class);
	}
}
